package test4_12;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.*;
import java.util.Scanner;

public class Test1 {

    private static final Logger LOGGER = LoggerFactory.getLogger(Test1.class);
    private static Scanner s = new Scanner(System.in);

    public static void main(String[] args) {

        /*System.out.println("请输入要复制的文件路径名：");
        String pathSrc = s.next();
        System.out.println("请输入您的目的地文件路径");
        String pathDes = s.next();
        ThreadCopy threadCopy = new ThreadCopy(new File(pathSrc),new File(pathDes));

        new Thread(threadCopy).start();*/

        Thread thread1 = new Thread(new ThreadCopy(new
                File("F:\\Download\\笔记\\day08\\考试\\试题B\\test.txt"), new File("test.txt")));


        Thread thread2 = new Thread(new ThreadCopy(new
                File("E:\\多任务.log"), new File("test2.txt")));


        thread1.start();
        thread2.start();

    }
}
